(if (>= emacs-major-version 25)
		(progn
			(require-package 'magit)
			(require 'magit)))
;((eq system-type 'windows-nt)
;    (setenv "GIT_SSH" "c:\\putty\\plink.exe"))
;;(require 'magit-autoloads)
;;定义一个打开git-gui的快捷命令
(defun run-git-gui ()
  "open git-gui in commandline"
  (interactive)
  (if (eq system-type 'windows-nt)
      (w32-shell-execute "open" "git" "gui"))
  (if (eq system-type 'gnu/linux)
      (shell-command "git gui")))

(provide 'init-git)
